package com.jack.xiaoer.dto;

import com.jack.xiaoer.constant.OrderStateEnum;
import com.jack.xiaoer.constant.PayTypeEnum;
import com.jack.xiaoer.validator.Groups;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.Instant;

/**
 * Created by Jackaroo Zhang on 2018/12/19.
 */
public class OrderDTO extends BaseDTO {

    private Long id;

    @NotNull(message = "商家ID不能为空", groups = {Groups.OrderCreate.class})
    private Long shopId;

    @NotNull(message = "用户ID不能为空", groups = {Groups.OrderCreate.class})
    private Long userId;

    private String note;

    private Instant expectedTime;

    @Override
    public String toString() {
        return "OrderDTO{" +
                "id=" + id +
                ", shopId=" + shopId +
                ", userId=" + userId +
                ", note='" + note + '\'' +
                ", expectedTime=" + expectedTime +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Instant getExpectedTime() {
        return expectedTime;
    }

    public void setExpectedTime(Instant expectedTime) {
        this.expectedTime = expectedTime;
    }
}
